package org.nanotek.service.impl;

import java.util.List;
import java.util.function.Consumer;

import javax.ejb.EJB;
import javax.ejb.Stateless;
import javax.validation.constraints.NotNull;

import org.json.JSONArray;
import org.nanotek.beans.ArtistCredit;
import org.nanotek.dao.ArtistCreditDAO;
import org.nanotek.service.ArtistCreditService;

@Stateless(name="ArtistCreditService" , mappedName="ArtistCreditService")
public class ArtistCreditServiceImpl implements ArtistCreditService{

	@EJB
	ArtistCreditDAO artistCreditDAO = null;
	
	public ArtistCreditServiceImpl()
	{ 
		System.out.println(this.artistCreditDAO);
	}
	

	public List<ArtistCredit> findArtistCredits(Long artistId)
	{ 
		return artistCreditDAO.findArtistCreditsByArtistId(artistId);
		
	}

	
}
